-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine and display various versions of interest #521
base: main
Are you sure you want to change the base?
Conversation
Sample output:
|
if [ "$?" == "0" ]; then | ||
echo "" | ||
echo "NVIDIA versions:" | ||
nvidia-smi --version | grep DRIVER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvidia-smi --version | grep DRIVER | |
nvidia-smi --query-gpu=driver_version --format=csv,noheader --id=0 |
echo "" | ||
echo "NVIDIA versions:" | ||
nvidia-smi --version | grep DRIVER | ||
nvidia-smi --version | grep CUDA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvidia-smi --version | grep CUDA | |
nvcc --version | sed -n 's/^.*release \([0-9]\+\.[0-9]\+\).*$/\1/p |
nvidia smi provices the cuda version support by the nvidia driver not the actual version of cuda
nvidia-smi --version | grep DRIVER | ||
nvidia-smi --version | grep CUDA | ||
|
||
NCCL_LIB=$(ls /usr/local/cuda/lib/libnccl.so.*.*.*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It points toward the default path of cuda install. However there can be many version cuda installed.
LUSTRE_CLIENT_VERSION="not found" | ||
which yum | ||
if [ "$?" == "0" ]; then | ||
LUSTRE_CLIENT_VERSION=$(yum list lustre-client | grep lustre-client | awk '{print $2}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are checking installed version, not the actual version loaded.
LUSTRE_CLIENT_VERSION=$(yum list lustre-client | grep lustre-client | awk '{print $2}') | |
modinfo lustre | grep 'version:' | head -n 1 | awk '{print $2}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comments.
Adds bash script which determines and prints various versions of interest.
Inventory of installed components and versions is useful to determine whether prerequisites are satisfied in various scenarios.
This PR does not depend on any other PRs or fix a reported issue.